﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manageback.master" AutoEventWireup="true" CodeFile="Product_mange.aspx.cs" Inherits="manage_wares_mange" Debug="true" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
a{ text-decoration:none; color:Black; } 
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
商品管理
<center>请输入关键字 ：
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:Button ID="Button1" runat="server" Text="搜索" onclick="Button1_Click" />
</center>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" 
        CellPadding="3" DataKeyNames="BookID" 
        ForeColor="Black" GridLines="Vertical" Width="100%">
        <AlternatingRowStyle BackColor="#CCCCCC" />
        <Columns>
            <asp:BoundField DataField="BookID" HeaderText="商品编号" ReadOnly="True" 
                SortExpression="BookID" />
            <asp:BoundField DataField="BookName" HeaderText="商品名称" 
                SortExpression="BookName" />
            <asp:BoundField DataField="ClassID" HeaderText="类别编号" 
                SortExpression="ClassID" />
            <asp:BoundField DataField="HotPrice" HeaderText="商品价格" 
                SortExpression="HotPrice" />
            <asp:HyperLinkField HeaderText="详细信息" Text="详细信息" 
                DataNavigateUrlFields="BookID" 
                DataNavigateUrlFormatString="product_update.aspx?bookid={0}" >
            <ItemStyle Font-Overline="False" Font-Strikeout="False" 
                Font-Underline="False" />
            </asp:HyperLinkField>
            <asp:TemplateField HeaderText="选择">
                <EditItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
                <ItemStyle Width="5%" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="#384050" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DataClassesDataContext" EntityTypeName="" 
        TableName="tb_BookInfo">
    </asp:LinqDataSource>

        <asp:Button ID="Button2" runat="server" Text="全选" onclick="Button2_Click" />
        <asp:Button ID="Button3" runat="server" Text="删除" onclick="Button3_Click" />

</div>
</asp:Content>

